package com.wlts.wzy.KSGoodsModule.service;

import com.wlts.wzy.expand.MyLambdaQueryWrapper;
import com.wlts.wzy.expand.MyPage;
import com.wlts.wzy.KSGoodsModule.entity.KsCategory;
import com.baomidou.mybatisplus.extension.service.IService;

import java.io.Serializable;

/**
 * <p>
 * 快手商品类目表 服务类
 * </p>
 *
 * @author zhiyong
 * @since 2021-01-31
 */
public interface IKsCategoryService extends IService<KsCategory> {

    KsCategory getById(Serializable id, boolean isUseCache);

    MyPage<KsCategory> page(KsCategory ksCategory, Integer page, Integer size, boolean isUseCache);

    MyPage<KsCategory> page(KsCategory ksCategory, Integer page, Integer size, boolean isUseCache, String dimension);

    MyPage<KsCategory> page(MyLambdaQueryWrapper<KsCategory> wrapper, Integer page, Integer size, boolean isUseCache);

    MyPage<KsCategory> page(MyLambdaQueryWrapper<KsCategory> wrapper, Integer page, Integer size, boolean isUseCache, String dimension);

    KsCategory selectOnes(MyLambdaQueryWrapper<KsCategory> wrapper, boolean isUseCache);

    void delAllPageCache();

    void delDimensionPageCache(String dimension);
}
